package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.utils.LogUtil;

public class CustomerVistListActivity extends SingleFragmentActivity {
  protected static final String EXTRA_NEED_ID = "com.isunland.managesystem.EXTRA_NEED_ID";
  private String mCustomerNeedId = "";
  private CustomerContactListFragment mCustomerContactListFragment;

  @Override protected void onCreate(Bundle savedInstanceState) {
    this.getSupportActionBar().setTitle(R.string.customer_contact);
    super.onCreate(savedInstanceState);
  }

  @Override protected Fragment createFragment() {
    mCustomerNeedId = getIntent().getStringExtra(EXTRA_NEED_ID);
    LogUtil.i("needId===" + mCustomerNeedId);
    mCustomerContactListFragment = CustomerContactListFragment.newInstance(mCustomerNeedId);
    return mCustomerContactListFragment;
  }
}
